<%-- 
    Document   : user_articles
    Created on : Mar 3, 2012, 1:31:42 AM
    Author     : eugene
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Your articles</title>
    </head>
    <body>
        <div class="row">
            <div class="span12">
                <h1 style="text-align: center">Your articles <i class="icon-file"></i></h1>
            </div>
        </div>
        <hr/>
        <div style="width: 94%; margin-left: 3%; margin-right: 3%">
            <table class="table table-striped table-condensed table-bordered" id="userList">
                <thead>
                    <tr style="background-color: #666666; color: white">
                        <th style="width: 35px"><i class="icon-cog icon-white"/></th>
                        <th>Title</th>
                    </tr>
                </thead>
                <tbody>
                    <c:forEach items="${articles}" var="article">
                        <tr>
                            <td>
                                <a class="icon-eye-open" href="./view/${article.id}.html"></a>
                                <a class="icon-edit" href="./edit/${article.id}.html"></a>
                            </td>
                            <td>
                                <a href="./view/${article.id}.html">${article.title}</a>
                            </td>
                        </tr>
                    </c:forEach>
                </tbody>
            </table>
        </div>
    </body>
</html>
